package com.cjq.dao;

import com.cjq.bean.User;

import java.util.List;
import java.util.Map;

public interface BaseUserDao {
    public List<Map<String, Integer>> console();

    public List<User> findAll(boolean limit, int offset, int pageNumber);

    public boolean insert (User user);

    public User findByUserPhone(String userPhone);

    public boolean update (User user);

    public boolean delete (int id);

    public  boolean updateLoginTime (String phone);

    public  boolean insertByPhone(String phone);

}
